package zjc.方法;

public class 求和 {
    public static void main(String[] args) {
        int a=1;
        int b=2;
        int c=a+b;
        System.out.println(c);
        int a1=1;
        int b1=2;
        int c1=a1+b1;
        System.out.println(c1);
        int a2=1;
        int b2=2;
        int c2=sum(a2,b2);
        System.out.println(c2);
    }
    public  static  int sum(int x,int y){
        int s=x+y;
        return  s;
    }
}
